import QtQuick

Item {
    id: anyLocationParameterBack_ParameterWindow
    width: 1760
    height: 935

    property real fontSize: Cpp_Language.CurrentLanguage === 1 ? 40 : Cpp_Language.CurrentLanguage === 2 ? 20 : Cpp_Language.CurrentLanguage === 3 ? 25 : 40

    Component.onCompleted: {
        Cpp_PLC.read_Any_Location_Compensate_Parameter_Setting_Hold();
    }

    A_NumberKeyboard{
        id: anyLocationParameterKeyboard
        isDirectOverwrite: false
    }


    Row{
        anchors.left: anyLocationParameterBack_ParameterWindow.left
        anchors.leftMargin: 20
        anchors.top: anyLocationParameterBack_ParameterWindow.top
        anchors.topMargin: 5

        Rectangle{
            width: 200
            height: 80
            color: "transparent"

            Text{
                anchors.centerIn: parent
                font.pixelSize: fontSize
                font.bold: true
                text: qsTr("位置下限")
            }
        }
        Rectangle{
            width: 200
            height: 80
            color: "transparent"

            Text{
                anchors.centerIn: parent
                font.pixelSize: fontSize
                font.bold: true
                text: qsTr("位置上限")
            }
        }
        Rectangle{
            width: 200
            height: 80
            color: "transparent"

            Text{
                anchors.centerIn: parent
                font.pixelSize: fontSize
                font.bold: true
                text: qsTr("补 偿 值")
            }
        }


    }


    Column{         // 左侧列表
        anchors.left: anyLocationParameterBack_ParameterWindow.left
        anchors.leftMargin: 20
        anchors.top: anyLocationParameterBack_ParameterWindow.top
        anchors.topMargin: 80

        spacing: 5


        Item{
            width: 850
            height: 80

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 10
                inputWidth: 200
                inputHeight: 80
                placeholderText :qsTr("位置下限1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_1_Min

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1750,value)
                }
            }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 210
                inputWidth: 200
                inputHeight: 80
                // placeholderText :qsTr("位置上限1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_1_Max

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1752,value)
                }
            }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 410
                inputWidth: 200
                inputHeight: 80
                placeholderText :qsTr("位置补偿1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_1

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1754,value)
                }
            }

            A_Button{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 610
                buttonWidth: 200
                buttonHeight: 80
                contentText_Data: Cpp_PLC.M_401 ? qsTr("已 启 用") : qsTr("未 启 用")
                isSelected: Cpp_PLC.M_401

                onButtonClicked: {
                    if(!Cpp_PLC.M_401)
                    {
                       Cpp_PLC.write_into_PLC_Coils(401,true)
                    }
                    else
                    {
                        Cpp_PLC.write_into_PLC_Coils(401,false)
                    }
                }
            }

        }
        Item{
            width: 850
            height: 80

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 10
                inputWidth: 200
                inputHeight: 80
                placeholderText :qsTr("位置下限1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_2_Min

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1756,value)
                }
            }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 210
                inputWidth: 200
                inputHeight: 80
                // placeholderText :qsTr("位置上限1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_2_Max

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1758,value)
                }
            }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 410
                inputWidth: 200
                inputHeight: 80
                placeholderText :qsTr("位置补偿1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_2

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1760,value)
                }
            }

            A_Button{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 610
                buttonWidth: 200
                buttonHeight: 80
                contentText_Data: Cpp_PLC.M_402 ? qsTr("已 启 用") : qsTr("未 启 用")
                isSelected: Cpp_PLC.M_402

                onButtonClicked: {
                    if(!Cpp_PLC.M_402)
                    {
                       Cpp_PLC.write_into_PLC_Coils(402,true)
                    }
                    else
                    {
                        Cpp_PLC.write_into_PLC_Coils(402,false)
                    }
                }
            }

        }
        Item{
            width: 850
            height: 80

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 10
                inputWidth: 200
                inputHeight: 80
                placeholderText :qsTr("位置下限1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_3_Min

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1762,value)
                }
            }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 210
                inputWidth: 200
                inputHeight: 80
                // placeholderText :qsTr("位置上限1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_3_Max

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1764,value)
                }
            }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 410
                inputWidth: 200
                inputHeight: 80
                placeholderText :qsTr("位置补偿1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_3

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1766,value)
                }
            }

            A_Button{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 610
                buttonWidth: 200
                buttonHeight: 80
                contentText_Data: Cpp_PLC.M_403 ? qsTr("已 启 用") : qsTr("未 启 用")
                isSelected: Cpp_PLC.M_403

                onButtonClicked: {
                    if(!Cpp_PLC.M_403)
                    {
                       Cpp_PLC.write_into_PLC_Coils(403,true)
                    }
                    else
                    {
                        Cpp_PLC.write_into_PLC_Coils(403,false)
                    }
                }
            }

        }
        Item{
            width: 850
            height: 80

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 10
                inputWidth: 200
                inputHeight: 80
                placeholderText :qsTr("位置下限1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_4_Min

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1768,value)
                }
            }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 210
                inputWidth: 200
                inputHeight: 80
                // placeholderText :qsTr("位置上限1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_4_Max

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1770,value)
                }
            }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 410
                inputWidth: 200
                inputHeight: 80
                placeholderText :qsTr("位置补偿1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_4

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1772,value)
                }
            }

            A_Button{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 610
                buttonWidth: 200
                buttonHeight: 80
                contentText_Data: Cpp_PLC.M_404 ? qsTr("已 启 用") : qsTr("未 启 用")
                isSelected: Cpp_PLC.M_404

                onButtonClicked: {
                    if(!Cpp_PLC.M_404)
                    {
                       Cpp_PLC.write_into_PLC_Coils(404,true)
                    }
                    else
                    {
                        Cpp_PLC.write_into_PLC_Coils(404,false)
                    }
                }
            }

        }
        Item{
            width: 850
            height: 80

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 10
                inputWidth: 200
                inputHeight: 80
                placeholderText :qsTr("位置下限1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_5_Min

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1774,value)
                }
            }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 210
                inputWidth: 200
                inputHeight: 80
                // placeholderText :qsTr("位置上限1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_5_Max

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1776,value)
                }
            }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 410
                inputWidth: 200
                inputHeight: 80
                placeholderText :qsTr("位置补偿1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_5

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1778,value)
                }
            }

            A_Button{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 610
                buttonWidth: 200
                buttonHeight: 80
                contentText_Data: Cpp_PLC.M_405 ? qsTr("已 启 用") : qsTr("未 启 用")
                isSelected: Cpp_PLC.M_405

                onButtonClicked: {
                    if(!Cpp_PLC.M_405)
                    {
                       Cpp_PLC.write_into_PLC_Coils(405,true)
                    }
                    else
                    {
                        Cpp_PLC.write_into_PLC_Coils(405,false)
                    }
                }
            }

        }
        Item{
            width: 850
            height: 80

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 10
                inputWidth: 200
                inputHeight: 80
                placeholderText :qsTr("位置下限1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_6_Min

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1780,value)
                }
            }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 210
                inputWidth: 200
                inputHeight: 80
                // placeholderText :qsTr("位置上限1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_6_Max

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1782,value)
                }
            }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 410
                inputWidth: 200
                inputHeight: 80
                placeholderText :qsTr("位置补偿1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_6

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1784,value)
                }
            }

            A_Button{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 610
                buttonWidth: 200
                buttonHeight: 80
                contentText_Data: Cpp_PLC.M_406 ? qsTr("已 启 用") : qsTr("未 启 用")
                isSelected: Cpp_PLC.M_406

                onButtonClicked: {
                    if(!Cpp_PLC.M_406)
                    {
                       Cpp_PLC.write_into_PLC_Coils(406,true)
                    }
                    else
                    {
                        Cpp_PLC.write_into_PLC_Coils(406,false)
                    }
                }
            }

        }
        Item{
            width: 850
            height: 80

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 10
                inputWidth: 200
                inputHeight: 80
                placeholderText :qsTr("位置下限1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_7_Min

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1786,value)
                }
            }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 210
                inputWidth: 200
                inputHeight: 80
                // placeholderText :qsTr("位置上限1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_7_Max

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1788,value)
                }
            }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 410
                inputWidth: 200
                inputHeight: 80
                placeholderText :qsTr("位置补偿1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_7

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1790,value)
                }
            }

            A_Button{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 610
                buttonWidth: 200
                buttonHeight: 80
                contentText_Data: Cpp_PLC.M_407 ? qsTr("已 启 用") : qsTr("未 启 用")
                isSelected: Cpp_PLC.M_407

                onButtonClicked: {
                    if(!Cpp_PLC.M_407)
                    {
                       Cpp_PLC.write_into_PLC_Coils(407,true)
                    }
                    else
                    {
                        Cpp_PLC.write_into_PLC_Coils(407,false)
                    }
                }
            }

        }
        Item{
            width: 850
            height: 80

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 10
                inputWidth: 200
                inputHeight: 80
                placeholderText :qsTr("位置下限1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_8_Min

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1792,value)
                }
            }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 210
                inputWidth: 200
                inputHeight: 80
                // placeholderText :qsTr("位置上限1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_8_Max

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1794,value)
                }
            }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 410
                inputWidth: 200
                inputHeight: 80
                placeholderText :qsTr("位置补偿1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_8

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1796,value)
                }
            }

            A_Button{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 610
                buttonWidth: 200
                buttonHeight: 80
                contentText_Data: Cpp_PLC.M_408 ? qsTr("已 启 用") : qsTr("未 启 用")
                isSelected: Cpp_PLC.M_408

                onButtonClicked: {
                    if(!Cpp_PLC.M_408)
                    {
                       Cpp_PLC.write_into_PLC_Coils(408,true)
                    }
                    else
                    {
                        Cpp_PLC.write_into_PLC_Coils(408,false)
                    }
                }
            }

        }
        Item{
            width: 850
            height: 80

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 10
                inputWidth: 200
                inputHeight: 80
                placeholderText :qsTr("位置下限1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_9_Min

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1798,value)
                }
            }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 210
                inputWidth: 200
                inputHeight: 80
                // placeholderText :qsTr("位置上限1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_9_Max

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1800,value)
                }
            }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 410
                inputWidth: 200
                inputHeight: 80
                placeholderText :qsTr("位置补偿1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_9

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1802,value)
                }
            }

            A_Button{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 610
                buttonWidth: 200
                buttonHeight: 80
                contentText_Data: Cpp_PLC.M_409 ? qsTr("已 启 用") : qsTr("未 启 用")
                isSelected: Cpp_PLC.M_409

                onButtonClicked: {
                    if(!Cpp_PLC.M_409)
                    {
                       Cpp_PLC.write_into_PLC_Coils(409,true)
                    }
                    else
                    {
                        Cpp_PLC.write_into_PLC_Coils(409,false)
                    }
                }
            }

        }
        Item{
            width: 850
            height: 80

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 10
                inputWidth: 200
                inputHeight: 80
                placeholderText :qsTr("位置下限1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_10_Min

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1804,value)
                }
            }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 210
                inputWidth: 200
                inputHeight: 80
                // placeholderText :qsTr("位置上限1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_10_Max

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1806,value)
                }
            }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 410
                inputWidth: 200
                inputHeight: 80
                placeholderText :qsTr("位置补偿1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_10

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1808,value)
                }
            }

            A_Button{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 610
                buttonWidth: 200
                buttonHeight: 80
                contentText_Data: Cpp_PLC.M_410 ? qsTr("已 启 用") : qsTr("未 启 用")
                isSelected: Cpp_PLC.M_410

                onButtonClicked: {
                    if(!Cpp_PLC.M_410)
                    {
                       Cpp_PLC.write_into_PLC_Coils(410,true)
                    }
                    else
                    {
                        Cpp_PLC.write_into_PLC_Coils(410,false)
                    }
                }
            }

        }
    }


    Row{
        anchors.right: anyLocationParameterBack_ParameterWindow.right
        anchors.rightMargin: 260
        anchors.top: anyLocationParameterBack_ParameterWindow.top
        anchors.topMargin: 5

        Rectangle{
            width: 200
            height: 80
            color: "transparent"

            Text{
                anchors.centerIn: parent
                font.pixelSize: fontSize
                font.bold: true
                text: qsTr("位置下限")
            }
        }
        Rectangle{
            width: 200
            height: 80
            color: "transparent"

            Text{
                anchors.centerIn: parent
                font.pixelSize: fontSize
                font.bold: true
                text: qsTr("位置上限")
            }
        }
        Rectangle{
            width: 200
            height: 80
            color: "transparent"

            Text{
                anchors.centerIn: parent
                font.pixelSize: fontSize
                font.bold: true
                text: qsTr("补 偿 值")
            }
        }

    }

    Column{         // 右侧列表
        anchors.right: anyLocationParameterBack_ParameterWindow.right
        anchors.rightMargin: 20
        anchors.top: anyLocationParameterBack_ParameterWindow.top
        anchors.topMargin: 80

        spacing: 5


        Item{
            width: 850
            height: 80

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 10
                inputWidth: 200
                inputHeight: 80
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_11_Min

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1810,value)
                }
            }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 210
                inputWidth: 200
                inputHeight: 80
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_11_Max

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1812,value)
                }
            }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 410
                inputWidth: 200
                inputHeight: 80
                placeholderText :qsTr("位置补偿1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_11

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1814,value)
                }
            }

            A_Button{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 610
                buttonWidth: 200
                buttonHeight: 80
                contentText_Data: Cpp_PLC.M_411 ? qsTr("已 启 用") : qsTr("未 启 用")
                isSelected: Cpp_PLC.M_411

                onButtonClicked: {
                    if(!Cpp_PLC.M_411)
                    {
                       Cpp_PLC.write_into_PLC_Coils(411,true)
                    }
                    else
                    {
                        Cpp_PLC.write_into_PLC_Coils(411,false)
                    }
                }
            }

        }
        Item{
            width: 850
            height: 80

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 10
                inputWidth: 200
                inputHeight: 80
                placeholderText :qsTr("位置下限1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_12_Min

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1816,value)
                }
            }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 210
                inputWidth: 200
                inputHeight: 80
                // placeholderText :qsTr("位置上限1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_12_Max

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1818,value)
                }
            }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 410
                inputWidth: 200
                inputHeight: 80
                placeholderText :qsTr("位置补偿1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_12

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1820,value)
                }
            }

            A_Button{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 610
                buttonWidth: 200
                buttonHeight: 80
                contentText_Data: Cpp_PLC.M_412 ? qsTr("已 启 用") : qsTr("未 启 用")
                isSelected: Cpp_PLC.M_412

                onButtonClicked: {
                    if(!Cpp_PLC.M_412)
                    {
                       Cpp_PLC.write_into_PLC_Coils(412,true)
                    }
                    else
                    {
                        Cpp_PLC.write_into_PLC_Coils(412,false)
                    }
                }
            }

        }
        Item{
            width: 850
            height: 80

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 10
                inputWidth: 200
                inputHeight: 80
                placeholderText :qsTr("位置下限1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_13_Min

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1822,value)
                }
            }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 210
                inputWidth: 200
                inputHeight: 80
                // placeholderText :qsTr("位置上限1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_13_Max

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1824,value)
                }
            }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 410
                inputWidth: 200
                inputHeight: 80
                placeholderText :qsTr("位置补偿1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_13

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1826,value)
                }
            }

            A_Button{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 610
                buttonWidth: 200
                buttonHeight: 80
                contentText_Data: Cpp_PLC.M_413 ? qsTr("已 启 用") : qsTr("未 启 用")
                isSelected: Cpp_PLC.M_413

                onButtonClicked: {
                    if(!Cpp_PLC.M_413)
                    {
                       Cpp_PLC.write_into_PLC_Coils(413,true)
                    }
                    else
                    {
                        Cpp_PLC.write_into_PLC_Coils(413,false)
                    }
                }
            }

        }
        Item{
            width: 850
            height: 80

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 10
                inputWidth: 200
                inputHeight: 80
                placeholderText :qsTr("位置下限1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_14_Min

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1828,value)
                }
            }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 210
                inputWidth: 200
                inputHeight: 80
                // placeholderText :qsTr("位置上限1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_14_Max

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1830,value)
                }
            }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 410
                inputWidth: 200
                inputHeight: 80
                placeholderText :qsTr("位置补偿1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_14

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1832,value)
                }
            }

            A_Button{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 610
                buttonWidth: 200
                buttonHeight: 80
                contentText_Data: Cpp_PLC.M_414 ? qsTr("已 启 用") : qsTr("未 启 用")
                isSelected: Cpp_PLC.M_414

                onButtonClicked: {
                    if(!Cpp_PLC.M_414)
                    {
                       Cpp_PLC.write_into_PLC_Coils(414,true)
                    }
                    else
                    {
                        Cpp_PLC.write_into_PLC_Coils(414,false)
                    }
                }
            }

        }
        Item{
            width: 850
            height: 80

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 10
                inputWidth: 200
                inputHeight: 80
                placeholderText :qsTr("位置下限1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_15_Min

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1834,value)
                }
            }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 210
                inputWidth: 200
                inputHeight: 80
                // placeholderText :qsTr("位置上限1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_15_Max

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1836,value)
                }
            }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 410
                inputWidth: 200
                inputHeight: 80
                placeholderText :qsTr("位置补偿1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_15

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1838,value)
                }
            }

            A_Button{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 610
                buttonWidth: 200
                buttonHeight: 80
                contentText_Data: Cpp_PLC.M_415 ? qsTr("已 启 用") : qsTr("未 启 用")
                isSelected: Cpp_PLC.M_415

                onButtonClicked: {
                    if(!Cpp_PLC.M_415)
                    {
                       Cpp_PLC.write_into_PLC_Coils(415,true)
                    }
                    else
                    {
                        Cpp_PLC.write_into_PLC_Coils(415,false)
                    }
                }
            }

        }
        Item{
            width: 850
            height: 80

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 10
                inputWidth: 200
                inputHeight: 80
                placeholderText :qsTr("位置下限1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_16_Min

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1840,value)
                }
            }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 210
                inputWidth: 200
                inputHeight: 80
                // placeholderText :qsTr("位置上限1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_16_Max

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1842,value)
                }
            }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 410
                inputWidth: 200
                inputHeight: 80
                placeholderText :qsTr("位置补偿1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_16

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1844,value)
                }
            }

            A_Button{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 610
                buttonWidth: 200
                buttonHeight: 80
                contentText_Data: Cpp_PLC.M_416 ? qsTr("已 启 用") : qsTr("未 启 用")
                isSelected: Cpp_PLC.M_416

                onButtonClicked: {
                    if(!Cpp_PLC.M_416)
                    {
                       Cpp_PLC.write_into_PLC_Coils(416,true)
                    }
                    else
                    {
                        Cpp_PLC.write_into_PLC_Coils(416,false)
                    }
                }
            }

        }
        Item{
            width: 850
            height: 80

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 10
                inputWidth: 200
                inputHeight: 80
                placeholderText :qsTr("位置下限1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_17_Min

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1846,value)
                }
            }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 210
                inputWidth: 200
                inputHeight: 80
                // placeholderText :qsTr("位置上限1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_17_Max

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1848,value)
                }
            }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 410
                inputWidth: 200
                inputHeight: 80
                placeholderText :qsTr("位置补偿1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_17

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1850,value)
                }
            }

            A_Button{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 610
                buttonWidth: 200
                buttonHeight: 80
                contentText_Data: Cpp_PLC.M_417 ? qsTr("已 启 用") : qsTr("未 启 用")
                isSelected: Cpp_PLC.M_417

                onButtonClicked: {
                    if(!Cpp_PLC.M_417)
                    {
                       Cpp_PLC.write_into_PLC_Coils(417,true)
                    }
                    else
                    {
                        Cpp_PLC.write_into_PLC_Coils(417,false)
                    }
                }
            }

        }
        Item{
            width: 850
            height: 80

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 10
                inputWidth: 200
                inputHeight: 80
                placeholderText :qsTr("位置下限1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_18_Min

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1852,value)
                }
            }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 210
                inputWidth: 200
                inputHeight: 80
                // placeholderText :qsTr("位置上限1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_18_Max

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1854,value)
                }
            }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 410
                inputWidth: 200
                inputHeight: 80
                placeholderText :qsTr("位置补偿1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_18

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1856,value)
                }
            }

            A_Button{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 610
                buttonWidth: 200
                buttonHeight: 80
                contentText_Data: Cpp_PLC.M_418 ? qsTr("已 启 用") : qsTr("未 启 用")
                isSelected: Cpp_PLC.M_418

                onButtonClicked: {
                    if(!Cpp_PLC.M_418)
                    {
                       Cpp_PLC.write_into_PLC_Coils(418,true)
                    }
                    else
                    {
                        Cpp_PLC.write_into_PLC_Coils(418,false)
                    }
                }
            }

        }
        Item{
            width: 850
            height: 80

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 10
                inputWidth: 200
                inputHeight: 80
                placeholderText :qsTr("位置下限1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_19_Min

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1858,value)
                }
            }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 210
                inputWidth: 200
                inputHeight: 80
                // placeholderText :qsTr("位置上限1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_19_Max

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1860,value)
                }
            }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 410
                inputWidth: 200
                inputHeight: 80
                placeholderText :qsTr("位置补偿1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_19

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1862,value)
                }
            }

            A_Button{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 610
                buttonWidth: 200
                buttonHeight: 80
                contentText_Data: Cpp_PLC.M_419 ? qsTr("已 启 用") : qsTr("未 启 用")
                isSelected: Cpp_PLC.M_419

                onButtonClicked: {
                    if(!Cpp_PLC.M_419)
                    {
                       Cpp_PLC.write_into_PLC_Coils(419,true)
                    }
                    else
                    {
                        Cpp_PLC.write_into_PLC_Coils(419,false)
                    }
                }
            }

        }
        Item{
            width: 850
            height: 80

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 10
                inputWidth: 200
                inputHeight: 80
                placeholderText :qsTr("位置下限1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_20_Min

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1864,value)
                }
            }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 210
                inputWidth: 200
                inputHeight: 80
                // placeholderText :qsTr("位置上限1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_20_Max

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1866,value)
                }
            }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 410
                inputWidth: 200
                inputHeight: 80
                placeholderText :qsTr("位置补偿1")
                keyboard: anyLocationParameterKeyboard
                text: Cpp_PLC.Any_Location_Compensate_20

                onEditingFinished: function(value){
                    // console.log(value)
                    Cpp_PLC.write_into_PLC_32_Hold(1868,value)
                }
            }

            A_Button{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 610
                buttonWidth: 200
                buttonHeight: 80
                contentText_Data: Cpp_PLC.M_420 ? qsTr("已 启 用") : qsTr("未 启 用")
                isSelected: Cpp_PLC.M_420

                onButtonClicked: {
                    if(!Cpp_PLC.M_420)
                    {
                       Cpp_PLC.write_into_PLC_Coils(420,true)
                    }
                    else
                    {
                        Cpp_PLC.write_into_PLC_Coils(420,false)
                    }
                }
            }

        }
    }



}
